Skip to content

Instantly share code, notes, and snippets.

@ynwd
ynwd / docs-template.md
Last active September 15, 2026 07:48
Technical Documentation Template

Technical Documentation Template

First of all, you need to understand you are not writing documentation for you, nor for your current team. You are writing documentation for the future developers that were not there when you first wrote this code. Worst of it, they might think it is bad code for many reasons and won’t understand why you wrote this way.

Taken from: How to write good software technical documentation

Table of contents

@DenBread
DenBread / README.md
Created February 16, 2025 22:16
Free Activation Code for JetBrains Products

My greetings, for everyone.

How to activate any JetBrains products with 3.jetbra.in?

First we need to visit this website

https://3.jetbra.in

Click the first link with Online status, by default is ipfs.io

Screenshot 2024-12-28 at 19 22 31

@thdxg
thdxg / cursor_glide.glsl
Created September 14, 2026 14:09
Ghostty smooth cursor animation
// the cursor itself glides between cells instead of jumping.
// Unlike a trail shader, this one is the focused cursor, so it
// requires ghostty's own cursor to be hidden:
//
// cursor-opacity = 0
// custom-shader = "./shaders/cursor_glide.glsl"
// --- CONFIGURATION ---
const float DURATION = 0.14; // seconds for one glide
@przeprogramowani
przeprogramowani / active-learning-prompt.md
Last active September 15, 2026 07:44
Efektywna nauka z AI - prompty

Uczę się technologii X. Mam przed sobą pliki z prawdziwego projektu, który zbudowałem z AI: @y. Wyjaśniaj krok po kroku, skupiając się na jednym kluczowym koncepcie. Zacznij od tego, co się dzieje na serwerze gdy użytkownik wchodzi na stronę, a potem co dzieje się w przeglądarce.
Po każdym kroku zadaj mi pytanie sprawdzające - nie kontynuuj, dopóki nie odpowiem poprawnie.

@karpathy
karpathy / microgpt.py
Last active September 15, 2026 07:32
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

name explain-diff-html
description Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output.

Explain Diff

Please make me a rich, interactive explanation of the specified code change.

It should have these sections:

If you link a program with a compiler driver (clang/gcc) in a standard way (not -nostdlib), the following components are usually on the linker command line.

  • crt1.o (glibc/musl): -no-pie/-pie/-static-pie
    • crt1.o: -no-pie
    • Scrt1.o: -pie, -shared
    • rcrt1.o: -static-pie
    • gcrt1.o:
  • crti.o (glibc/musl)
  • crtbegin.o
  • crtbegin.o: -no-pie
@alice-i-cecile
alice-i-cecile / Bevy Merge Train for 2026-09-14.md
Created September 15, 2026 04:09
Bevy Merge Train for 2026-09-14
  1. Optimize shadow material queuing by caching is_depth_only_opaque (#23834)

+20/-21 for a 40% speed-up in a shadows system? Sign me up! Oh, it's smarter caching. Of course it's smarter caching. One of these days we're going to find a new optimization I promise.

Benchmarks look great (don't merge performance PRs without at least some attempt please...); code is sane, merging.

This is only one small bit of rendering, but we'll chop up this elephant 1000 cuts at a time.